
<%@ page import="bog.Tag" %>
<meta name="layout" content="main-bootstrap">
<g:set var="entityName" value="${message(code: 'tag.label', default: 'Tag')}" />
<div id="show-tag" class="content scaffold-show" role="main">
    <h1><g:message code="default.show.label" args="[entityName]" /></h1>
    <g:if test="${flash.message}">
        <div class="message" role="status">${flash.message}</div>
    </g:if>
    <ol class="property-list tag">

        <g:if test="${tagInstance?.description}">
            <li class="fieldcontain">
                <span id="description-label" class="property-label"><g:message code="tag.description.label" default="Description" /></span>

                <span class="property-value" aria-labelledby="description-label"><g:fieldValue bean="${tagInstance}" field="description"/></span>

            </li>
        </g:if>

        <g:if test="${tagInstance?.threads}">
            <li class="fieldcontain">
                <span id="threads-label" class="property-label"><g:message code="tag.threads.label" default="Threads" /></span>

                <g:each in="${tagInstance.threads}" var="t">
                    <span class="property-value" aria-labelledby="threads-label"><g:link controller="thread" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></span>
                </g:each>

            </li>
        </g:if>

    </ol>
    <g:form>
        <fieldset class="buttons">
            <g:hiddenField name="id" value="${tagInstance?.id}" />
            <g:link class="edit" action="edit" id="${tagInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
            <g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
        </fieldset>
    </g:form>
</div>
